const requrl = "http://md.rovine.cn";
const request = {
	//手机验证码
	codeget(data){//获取验证码
		const url = `${requrl}/api/code/get`
		return req({url,data});
	},
	//图片上传
	uploadimage(data){//上传图片文件
		const url = `${requrl}/api/upload/image`
		return req({url,data});
	},
	uploadimage_base64(data){//上传图片base64
		const url = `${requrl}/api/upload/image_base64`
		return req({url,data});
	},
	//公司管理
	companyreq(data){//公司注册
		const url = `${requrl}/api/company/reg`
		return req({url,data});
	},
	companyfind_pwd(data){//公司找回密码
		const url = `${requrl}/api/company/find_pwd`
		return req({url,data});
	},
	//门店管理
	storedetail(data){//获取门店信息
		const url = `${requrl}/api/store/detail`
		return req({url,data});
	},
	storeedit(data){//修改门店信息
		const url = `${requrl}/api/store/edit`
		return req({url,data});
	},
	storereceipt_code(data){//上传收款二维码
		const url = `${requrl}/api/store/receipt_code`
		return req({url,data});
	},
	storeget_receipt(data){//获取收款二维码
		const url = `${requrl}/api/store/get_receipt`
		return req({url,data});
	},
	//部门管理
	departmentadd(data){//添加部门
		const url = `${requrl}/api/department/add`
		return req({url,data});
	},
	departmentlist(data){//获取部门列表
		const url = `${requrl}/api/department/lst`
		return req({url,data});
	},
	departmentdetail(data){//获取部门详情
		const url = `${requrl}/api/department/detail`
		return req({url,data});
	},
	departmentedit(data){//修改部门名称
		const url = `${requrl}/api/department/edit`
		return req({url,data});
	},
	//角色管理
	roleset(data){//更改员工角色权限
		const url = `${requrl}/api/role/set`
		return req({url,data});
	},
	roleprivilegelist(data){//获取权限列表
		const url = `${requrl}/api/role/privilege`
		return req({url,data});
	},
	rolelist(data){//获取角色列表
		const url = `${requrl}/api/role/lst`
		return req({url,data});
	},
	roleadd(data){//添加角色
		const url = `${requrl}/api/role/add`
		return req({url,data});
	},
	roledetail(data){//获取单个角色权限
		const url = `${requrl}/api/role/detail`
		return req({url,data});
	},
	roledel(data){//删除角色（物理删除）
		const url = `${requrl}/api/role/del`
		return req({url,data});
	},
	//员工管理
	login(data){//员工登陆
		const url = `${requrl}/api/login`
		return req({url,data});
	},
	employeeadd(data){//添加员工
		const url = `${requrl}/api/employee/add`
		return req({url,data});
	},
	employeesdel(data){//删除员工（假删除）
		const url = `${requrl}/api/employee/sdel`
		return req({url,data});
	},
	employeerecover(data){//恢复员工
		const url = `${requrl}/api/employee/recover`
		return req({url,data});
	},
	employeelist(data){//获取员工列表
		const url = `${requrl}/api/employee/lst`
		return req({url,data});
	},
	employeeget(data){//获取员工信息
		const url = `${requrl}/api/employee/get`
		return req({url,data});
	},
	employeeget_percent(data){//获取商品-角色提成关系
		const url = `${requrl}/api/employee/get_percent`
		return req({url,data});
	},
	employeeswap_work(data){//员工交班
		const url = `${requrl}/api/employee/swap_work`
		return req({url,data});
	},
	employeelist_work(data){//获取历史交班记录
		const url = `${requrl}/api/employee/list_work`
		return req({url,data});
	},
	//门店会员
	memberlist(data){//获取会员列表
		const url = `${requrl}/api/member/lst`
		return req({url,data});
	},
	memberadd(data){//添加会员
		const url = `${requrl}/api/member/add`
		return req({url,data});
	},
	memberdetail(data){//获取会员详情
		const url = `${requrl}/api/member/detail`
		return req({url,data});
	},
	memberedit(data){//修改会员信息
		const url = `${requrl}/api/member/edit`
		return req({url,data});
	},
	membersearch(data){//搜索会员
		const url = `${requrl}/api/member/search`
		return req({url,data});
	},
	rechargeplace(data){//会员充值（下单）
		const url = `${requrl}/api/recharge/place`
		return req({url,data});
	},
	rechargepay(data){//会员充值（付款）
		const url = `${requrl}/api/recharge/pay`
		return req({url,data});
	},
	membergather(data){//会员当天新增个数和总和
		const url = `${requrl}/api/member/gather`
		return req({url,data});
	},
	membertrend(data){//会员新增趋势统计
		const url = `${requrl}/api/member/trend`
		return req({url,data});
	},
	memberget_member_send(data){//获取需要发送信息的会员
		const url = `${requrl}/api/member/get_member_send`
		return req({url,data});
	},
	//门店会员等级
	member_leveladd(data){//添加会员等级
		const url = `${requrl}/api/member_level/add`
		return req({url,data});
	},
	member_levellist(data){//获取会员等级列表
		const url = `${requrl}/api/member_level/lst`
		return req({url,data});
	},
	member_levelbedit(data){//修改会员等级折扣信息
		const url = `${requrl}/api/member_level/bedit`
		return req({url,data});
	},
	//会员卡管理
	member_carddetail(data){//获取会员卡信息
		const url = `${requrl}/api/member_card/detail`
		return req({url,data});
	},
	member_carddeduct(data){//次卡扣减
		const url = `${requrl}/api/member_card/deduct`
		return req({url,data});
	},
	member_cardcensus(data){//计次统计（名称）
		const url = `${requrl}/api/member_card/census`
		return req({url,data});
	},
	member_cardcensus_by_day(data){//计次统计（日期）
		const url = `${requrl}/api/member_card/census_by_day`
		return req({url,data});
	},
	//商品分类管理
	product_sortadd(data){//添加商品分类
		const url = `${requrl}/api/product_sort/add`
		return req({url,data});
	},
	product_sortdetail(data){//获取商品分类
		const url = `${requrl}/api/product_sort/detail`
		return req({url,data});
	},
	product_sortedit(data){//修改商品分类详情
		const url = `${requrl}/api/product_sort/edit`
		return req({url,data});
	},
	product_sortlist(data){//获取商品分类列表
		const url = `${requrl}/api/product_sort/lst`
		return req({url,data});
	},
	product_sortdel(data){//删除商品分类（假删除）
		const url = `${requrl}/api/product_sort/del`
		return req({url,data});
	},
	//获取支付方式
	paysort(data){
		const url = `${requrl}/api/pay/sort`
		return req({url,data,type});
	},
	//商品管理
	productadd(data){//添加商品
		const url = `${requrl}/api/product/add`
		return req({url,data});
	},
	product(data){//获取商品列表
		const url = `${requrl}/api/product`
		return req({url,data});
	},
	productdetail(data){//获取商品详情
		const url = `${requrl}/api/product/detail`
		return req({url,data});
	},
	productedit(data){//修改商品详情
		const url = `${requrl}/api/product/edit`
		return req({url,data});
	},
	productdel(data){//删除商品
		const url = `${requrl}/api/product/del`
		return req({url,data});
	},
	productedit_stock(data){//修改商品库存
		const url = `${requrl}/api/product/edit_stock`
		return req({url,data});
	},
	productallot(data){//商品调拨
		const url = `${requrl}/api/product/allot`
		return req({url,data});
	},
	productgather(data){//获取商品库存等信息
		const url = `${requrl}/api/product/gather`
		return req({url,data});
	},
	productlist_sort(data){//根据商品分类获取商品列表
		const url = `${requrl}/api/product/list_sort`
		return req({url,data});
	},
	productstream(data){//获取库存单据
		const url = `${requrl}/api/product/stream`
		return req({url,data});
	},
	productrecord_detail(data){//获取单个单据的详细信息
		const url = `${requrl}/api/product/record_detail`
		return req({url,data});
	},
	productcensus(data){//商品统计（名称）
		const url = `${requrl}/api/product/census`
		return req({url,data});
	},
	productcensus_by_day(data){//商品统计（日期）
		const url = `${requrl}/api/product/census_by_day`
		return req({url,data});
	},
	//订单管理
	orderplace(data){//商品挂单和直接支付
		const url = `${requrl}/api/order/place`
		return req({url,data});
	},
	orderpay(data){//商品订单（付款接口）
		const url = `${requrl}/api/order/pay`
		return req({url,data});
	},
	orderpoint_convert(data){//积分兑换
		const url = `${requrl}/api/order/point_convert`
		return req({url,data});
	},
	orderlist(data){//获取挂单列表
		const url = `${requrl}/api/order/lst`
		return req({url,data});
	},
	ordersearch(data){//搜索订单
		const url = `${requrl}/api/order/search`
		return req({url,data});
	},
	ordersdel(data){//删除订单（批量软删除）
		const url = `${requrl}/api/order/sdel`
		return req({url,data});
	},
	ordertoday_gather(data){//获取当天订单信息
		const url = `${requrl}/api/order/today_gather`
		return req({url,data});
	},
	orderprofit_census(data){//利润统计（汇总）
		const url = `${requrl}/api/order/profit_census`
		return req({url,data});
	},
	orderprofit_by_day(data){//利润统计（天）
		const url = `${requrl}/api/order/profit_by_day`
		return req({url,data});
	},
	ordersell_census(data){//销售统计（每天销售的金额）
		const url = `${requrl}/api/order/sell_census`
		return req({url,data});
	},
	//充值管理
	rechargeplace(data){//会员充值
		const url = `${requrl}/api/recharge/place`
		return req({url,data});
	},
	rechargepay(data){//付款接口
		const url = `${requrl}/api/recharge/pay`
		return req({url,data});
	},
	rechargetoday_gather(data){//获取当天充值信息
		const url = `${requrl}/api/recharge/today_gather`
		return req({url,data});
	},
	//优惠券
	couponlist(data){//获取优惠券列表
		const url = `${requrl}/api/coupon/lst`
		return req({url,data});
	},
	couponadd(data){//添加优惠券
		const url = `${requrl}/api/coupon/add`
		return req({url,data});
	},
	coupongrant(data){//发放优惠券
		const url = `${requrl}/api/coupon/grant`
		return req({url,data});
	},
	//公告条码库
	barCodedetail(data){//获取条码信息
		const url = `${requrl}/api/BarCode/detail`
		return req({url,data,type});
	},
	//获取消息
	messagelist(data){//获取消息列表
		const url = `${requrl}/api/message/lst`
		return req({url,data});
	},
	messagesend(data){//发送短信给会员
		const url = `${requrl}/api/message/send`
		return req({url,data});
	},
	//预约管理
	appointmentadd(data){//添加预约（员工）
		const url = `${requrl}/api/appointment/add`
		return req({url,data});
	},
	appointmentlist(data){//查看预约列表
		const url = `${requrl}/api/appointment/lst`
		return req({url,data});
	},
	appointment(data){//操作预约状态
		const url = `${requrl}/api/appointment`
		return req({url,data});
	},
	//商品-角色提成管理
	product_percentset(data){
		const url = `${requrl}/api/product_percent/set`
		return req({url,data});
	},
	//充值提成管理
	recharge_percentset(data){//设置充值提成
		const url = `${requrl}/api/recharge_percent/set`
		return req({url,data});
	},
	recharge_percentset(data){//获取充值提成
		const url = `${requrl}/api/recharge_percent/detail`
		return req({url,data});
	},
	//日常收支管理
	income_sortadd(data){//自定义记一笔分类
		const url = `${requrl}/api/income_sort/add`
		return req({url,data});
	},
	income_sortlist(data){//获取分类列表
		const url = `${requrl}/api/income_sort/lst`
		return req({url,data});
	},
	income_sortdetail(data){//获取分类详情
		const url = `${requrl}/api/income_sort/detail`
		return req({url,data});
	},
	income_sortedit(data){//修改分类名称
		const url = `${requrl}/api/income_sort/edit`
		return req({url,data});
	},
	income_sortdel(data){//删除分类
		const url = `${requrl}/api/income_sort/del`
		return req({url,data});
	},
	incomeadd(data){//添加记一笔
		const url = `${requrl}/api/income/add`
		return req({url,data});
	},
	incomelst(data){//获取记一笔列表
		const url = `${requrl}/api/income/lst`
		return req({url,data});
	},
	incomesubtotal(data){//获取统计信息
		const url = `${requrl}/api/income/subtotal`
		return req({url,data});
	},
	incomedetail(data){//获取详情
		const url = `${requrl}/api/income/detail`
		return req({url,data});
	},
	//配置文件
	setdetail(data){//获取配置信息
		const url = `${requrl}/api/set/detail`
		return req({url,data});
	},
	setedit(data){//修改配置文件信息
		const url = `${requrl}/api/set/edit`
		return req({url,data});
	},
	//其他统计
	orderconsume_census(data){//消费统计
		const url = `${requrl}/api/order/consume_census`
		return req({url,data});
	},
	ordercensus_by_day(data){//消费统计（日期）
		const url = `${requrl}/api/order/census_by_day`
		return req({url,data});
	},
	
	
}



